package com.gzy.rpsm_property.mapper;

import com.gzy.rpsm_property.pojo.Building;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;
@Mapper
@Repository
public interface BuildingMapper {
    @Select("<script>select building_id,building_name from building <where> <if test='status != 0'> building_status = #{status} </if> </where></script>")
    List<Building> buildingsOfStatus(@Param("status")int status);
}
